package org.abratuhi.kvngroupware.brainstorm.manager;

import java.util.Arrays;

import org.abratuhi.kvngroupware.brainstorm.model.Brainstorm;
import org.abratuhi.kvngroupware.manager.Manager;

public class BrainstormManager extends Manager<Brainstorm>{

	@Override
	public String[] getDataForWidget() {
		String[] keys = getkeys();
		String[] result = new String[keys.length];
		for(int i=0; i<keys.length; i++)
			result[i] = get(keys[i]).getTheme() + "|" + get(keys[i]).getId();
		Arrays.sort(result);
		return result;
	}

}
